home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3camera.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  10.0 KB  |  364 lines

  1.  
  2. // JavaScript wrapper for r3camera.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_CAMERA_H = 1;
  7. include("real/objects/r3level.js")
  8.  
  9.  
  10. var R3CLID_CAMERA = 332;
  11.  
  12.  
  13.  
  14.  
  15.  
  16. R3CAMM_RENDERLENSFLARE = 332000;
  17.  
  18. function mR3CAMM_RENDERLENSFLARE() {
  19.   DoA(this.r3obj, 332000, 0, R3TID_INTEGER, 0);
  20. }
  21.  
  22.  
  23. R3CAMM_FINDCURRENT = 332001;
  24.  
  25. function mR3CAMM_FINDCURRENT() {
  26.   DoA(this.r3obj, 332001, 0, R3TID_INTEGER, 0);
  27. }
  28.  
  29. // Description: changes the object space
  30. // p3: r3Vect, translate delta is absolute space
  31.  
  32. R3CAMM_TRANSLATESELECTEDPOIN = 332002;
  33.  
  34. function mR3CAMM_TRANSLATESELECTEDPOIN(p3) {
  35.   DoA(this.r3obj, 332002, p3, R3TID_VECTOR, 0);
  36. }
  37.  
  38. // Description: Low level set point.
  39. // Returns: Boolean, true if succeeded
  40. // p1: Integer, index of the point to be set (see CAMP_ codes below)
  41. // p3: r3Vect, point in object space    
  42.  
  43. R3CAMM_SETPOINTLOCAL = 332003;
  44.  
  45. function mR3CAMM_SETPOINTLOCAL(p1, p3) {
  46.   return   DoA2(this.r3obj, 332003, p1, R3TID_INTEGER, 0, p3, R3TID_VECTOR, 0);
  47. }
  48.  
  49. // Description: Low level get point.
  50. // Returns: Boolean, true if succeeded
  51. // p1: Integer, index of the point to be set (see CAMP_ codes below)
  52. // p3: r3Vect, point in object space    
  53.  
  54. R3CAMM_GETPOINTLOCAL = 332004;
  55.  
  56. function mR3CAMM_GETPOINTLOCAL(p1, p3) {
  57.   return   DoA2(this.r3obj, 332004, p1, R3TID_INTEGER, 0, p3, R3TID_VECTOR, 0);
  58. }
  59.  
  60.  
  61.  
  62.  
  63. R3CAMA_Position = 332500;
  64. function SetR3CAMA_Position(value) {
  65.   R3Set(this.r3obj, R3CAMA_Position, value, R3TID_VECTOR, 0); 
  66. }
  67.  
  68. function GetR3CAMA_Position() {
  69.   return R3Get(this.r3obj, R3CAMA_Position, R3TID_VECTOR, 0); 
  70. }
  71.  
  72. R3CAMA_Direction = 332501;
  73. function SetR3CAMA_Direction(value) {
  74.   R3Set(this.r3obj, R3CAMA_Direction, value, R3TID_VECTOR, 0); 
  75. }
  76.  
  77. function GetR3CAMA_Direction() {
  78.   return R3Get(this.r3obj, R3CAMA_Direction, R3TID_VECTOR, 0); 
  79. }
  80.  
  81. R3CAMA_Up = 332502;
  82. function SetR3CAMA_Up(value) {
  83.   R3Set(this.r3obj, R3CAMA_Up, value, R3TID_VECTOR, 0); 
  84. }
  85.  
  86. function GetR3CAMA_Up() {
  87.   return R3Get(this.r3obj, R3CAMA_Up, R3TID_VECTOR, 0); 
  88. }
  89.  
  90. R3CAMA_AspectRatio = 332503;
  91. function SetR3CAMA_AspectRatio(value) {
  92.   R3Set(this.r3obj, R3CAMA_AspectRatio, value, R3TID_FLOAT, 0); 
  93. }
  94.  
  95. function GetR3CAMA_AspectRatio() {
  96.   return R3Get(this.r3obj, R3CAMA_AspectRatio, R3TID_FLOAT, 0); 
  97. }
  98.  
  99. R3CAMA_CoordSys = 332504;
  100. function SetR3CAMA_CoordSys(value) {
  101.   R3Set(this.r3obj, R3CAMA_CoordSys, value, R3TID_COORDSYS, R3TNF_ARRAY); 
  102. }
  103.  
  104. function GetR3CAMA_CoordSys() {
  105.   return R3Get(this.r3obj, R3CAMA_CoordSys, R3TID_COORDSYS, R3TNF_ARRAY); 
  106. }
  107.  
  108. R3CAMA_FilmWidth = 332505;
  109. function SetR3CAMA_FilmWidth(value) {
  110.   R3Set(this.r3obj, R3CAMA_FilmWidth, value, R3TID_FLOAT, 0); 
  111. }
  112.  
  113. function GetR3CAMA_FilmWidth() {
  114.   return R3Get(this.r3obj, R3CAMA_FilmWidth, R3TID_FLOAT, 0); 
  115. }
  116.  
  117. R3CAMA_FilmHeight = 332506;
  118. function SetR3CAMA_FilmHeight(value) {
  119.   R3Set(this.r3obj, R3CAMA_FilmHeight, value, R3TID_FLOAT, 0); 
  120. }
  121.  
  122. function GetR3CAMA_FilmHeight() {
  123.   return R3Get(this.r3obj, R3CAMA_FilmHeight, R3TID_FLOAT, 0); 
  124. }
  125.  
  126. R3CAMA_Angle = 332507;
  127. function SetR3CAMA_Angle(value) {
  128.   R3Set(this.r3obj, R3CAMA_Angle, value, R3TID_FLOAT, 0); 
  129. }
  130.  
  131. function GetR3CAMA_Angle() {
  132.   return R3Get(this.r3obj, R3CAMA_Angle, R3TID_FLOAT, 0); 
  133. }
  134.  
  135. R3CAMA_Projection = 332508;
  136. function SetR3CAMA_Projection(value) {
  137.   R3Set(this.r3obj, R3CAMA_Projection, value, R3TID_INTEGER, 0); 
  138. }
  139.  
  140. function GetR3CAMA_Projection() {
  141.   return R3Get(this.r3obj, R3CAMA_Projection, R3TID_INTEGER, 0); 
  142. }
  143.  
  144. R3CAMA_FilmSensitivity = 332509;
  145. function SetR3CAMA_FilmSensitivity(value) {
  146.   R3Set(this.r3obj, R3CAMA_FilmSensitivity, value, R3TID_FLOAT, 0); 
  147. }
  148.  
  149. function GetR3CAMA_FilmSensitivity() {
  150.   return R3Get(this.r3obj, R3CAMA_FilmSensitivity, R3TID_FLOAT, 0); 
  151. }
  152.  
  153. R3CAMA_AutoExposure = 332510;
  154. function SetR3CAMA_AutoExposure(value) {
  155.   R3Set(this.r3obj, R3CAMA_AutoExposure, value, R3TID_INTEGER, 0); 
  156. }
  157.  
  158. function GetR3CAMA_AutoExposure() {
  159.   return R3Get(this.r3obj, R3CAMA_AutoExposure, R3TID_INTEGER, 0); 
  160. }
  161.  
  162. R3CAMA_DepthOfField = 332511;
  163. function SetR3CAMA_DepthOfField(value) {
  164.   R3Set(this.r3obj, R3CAMA_DepthOfField, value, R3TID_INTEGER, 0); 
  165. }
  166.  
  167. function GetR3CAMA_DepthOfField() {
  168.   return R3Get(this.r3obj, R3CAMA_DepthOfField, R3TID_INTEGER, 0); 
  169. }
  170.  
  171. R3CAMA_FocalLength = 332512;
  172. function SetR3CAMA_FocalLength(value) {
  173.   R3Set(this.r3obj, R3CAMA_FocalLength, value, R3TID_FLOAT, 0); 
  174. }
  175.  
  176. function GetR3CAMA_FocalLength() {
  177.   return R3Get(this.r3obj, R3CAMA_FocalLength, R3TID_FLOAT, 0); 
  178. }
  179.  
  180. R3CAMA_Fstop = 332513;
  181. function SetR3CAMA_Fstop(value) {
  182.   R3Set(this.r3obj, R3CAMA_Fstop, value, R3TID_FLOAT, 0); 
  183. }
  184.  
  185. function GetR3CAMA_Fstop() {
  186.   return R3Get(this.r3obj, R3CAMA_Fstop, R3TID_FLOAT, 0); 
  187. }
  188.  
  189. R3CAMA_FocusingDistance = 332514;
  190. function SetR3CAMA_FocusingDistance(value) {
  191.   R3Set(this.r3obj, R3CAMA_FocusingDistance, value, R3TID_FLOAT, 0); 
  192. }
  193.  
  194. function GetR3CAMA_FocusingDistance() {
  195.   return R3Get(this.r3obj, R3CAMA_FocusingDistance, R3TID_FLOAT, 0); 
  196. }
  197.  
  198. R3CAMA_LensFlare = 332515;
  199. function SetR3CAMA_LensFlare(value) {
  200.   R3Set(this.r3obj, R3CAMA_LensFlare, value, R3TID_STRING, 0); 
  201. }
  202.  
  203. function GetR3CAMA_LensFlare() {
  204.   return R3Get(this.r3obj, R3CAMA_LensFlare, R3TID_STRING, 0); 
  205. }
  206.  
  207. R3CAMA_Flash = 332516;
  208. function SetR3CAMA_Flash(value) {
  209.   R3Set(this.r3obj, R3CAMA_Flash, value, R3TID_COLOR_RGB, 0); 
  210. }
  211.  
  212. function GetR3CAMA_Flash() {
  213.   return R3Get(this.r3obj, R3CAMA_Flash, R3TID_COLOR_RGB, 0); 
  214. }
  215.  
  216. R3CAMA_IsCurrent = 332517;
  217. function SetR3CAMA_IsCurrent(value) {
  218.   R3Set(this.r3obj, R3CAMA_IsCurrent, value, R3TID_INTEGER, 0); 
  219. }
  220.  
  221. function GetR3CAMA_IsCurrent() {
  222.   return R3Get(this.r3obj, R3CAMA_IsCurrent, R3TID_INTEGER, 0); 
  223. }
  224.  
  225. var R3CAMA_FlareLightInfoList = 332518; // Object
  226. R3CAMA_Scale = 332519;
  227. function SetR3CAMA_Scale(value) {
  228.   R3Set(this.r3obj, R3CAMA_Scale, value, R3TID_FLOAT, 0); 
  229. }
  230.  
  231. function GetR3CAMA_Scale() {
  232.   return R3Get(this.r3obj, R3CAMA_Scale, R3TID_FLOAT, 0); 
  233. }
  234.  
  235. R3CAMA_SafeWidth = 332520;
  236. function SetR3CAMA_SafeWidth(value) {
  237.   R3Set(this.r3obj, R3CAMA_SafeWidth, value, R3TID_FLOAT, 0); 
  238. }
  239.  
  240. function GetR3CAMA_SafeWidth() {
  241.   return R3Get(this.r3obj, R3CAMA_SafeWidth, R3TID_FLOAT, 0); 
  242. }
  243.  
  244. R3CAMA_SafeHeight = 332521;
  245. function SetR3CAMA_SafeHeight(value) {
  246.   R3Set(this.r3obj, R3CAMA_SafeHeight, value, R3TID_FLOAT, 0); 
  247. }
  248.  
  249. function GetR3CAMA_SafeHeight() {
  250.   return R3Get(this.r3obj, R3CAMA_SafeHeight, R3TID_FLOAT, 0); 
  251. }
  252.  
  253. R3CAMA_NoVertPersp = 332523;
  254. function SetR3CAMA_NoVertPersp(value) {
  255.   R3Set(this.r3obj, R3CAMA_NoVertPersp, value, R3TID_INTEGER, 0); 
  256. }
  257.  
  258. function GetR3CAMA_NoVertPersp() {
  259.   return R3Get(this.r3obj, R3CAMA_NoVertPersp, R3TID_INTEGER, 0); 
  260. }
  261.  
  262. var R3CAMA_RenderNoGeometry = 332524; // Boolean
  263. R3CAMA_Side = 332525;
  264. function SetR3CAMA_Side(value) {
  265.   R3Set(this.r3obj, R3CAMA_Side, value, R3TID_VECTOR, 0); 
  266. }
  267.  
  268. function GetR3CAMA_Side() {
  269.   return R3Get(this.r3obj, R3CAMA_Side, R3TID_VECTOR, 0); 
  270. }
  271.  
  272. R3CAMA_From = 332526;
  273. function SetR3CAMA_From(value) {
  274.   R3Set(this.r3obj, R3CAMA_From, value, R3TID_VECTOR, 0); 
  275. }
  276.  
  277. function GetR3CAMA_From() {
  278.   return R3Get(this.r3obj, R3CAMA_From, R3TID_VECTOR, 0); 
  279. }
  280.  
  281. R3CAMA_To = 332527;
  282. function SetR3CAMA_To(value) {
  283.   R3Set(this.r3obj, R3CAMA_To, value, R3TID_VECTOR, 0); 
  284. }
  285.  
  286. function GetR3CAMA_To() {
  287.   return R3Get(this.r3obj, R3CAMA_To, R3TID_VECTOR, 0); 
  288. }
  289.  
  290. var CAMP_POSITION = 0;
  291. var CAMP_DIRECTION = 1;
  292. var CAMP_UP = 2;
  293. var CAMP_SIDE = 3;
  294. var R3CAMP_PERSPECTIVE = 0;
  295. var R3CAMP_ORTHOGRAPHIC = 1;
  296.  
  297.  
  298. function r3Camera () { 
  299.    this.base = r3God;
  300.    if(arguments.length) {
  301.       this.base(R3CLID_CAMERA, arguments);
  302.    }
  303.    // Methods
  304.    this.RENDERLENSFLARE=mR3CAMM_RENDERLENSFLARE;
  305.    this.FINDCURRENT=mR3CAMM_FINDCURRENT;
  306.    this.TRANSLATESELECTEDPOIN=mR3CAMM_TRANSLATESELECTEDPOIN;
  307.    this.SETPOINTLOCAL=mR3CAMM_SETPOINTLOCAL;
  308.    this.GETPOINTLOCAL=mR3CAMM_GETPOINTLOCAL;
  309.  
  310.    // Attributes
  311.    this.GetPosition=GetR3CAMA_Position;
  312.    this.SetPosition=SetR3CAMA_Position;
  313.    this.GetDirection=GetR3CAMA_Direction;
  314.    this.SetDirection=SetR3CAMA_Direction;
  315.    this.GetUp=GetR3CAMA_Up;
  316.    this.SetUp=SetR3CAMA_Up;
  317.    this.GetAspectRatio=GetR3CAMA_AspectRatio;
  318.    this.SetAspectRatio=SetR3CAMA_AspectRatio;
  319.    this.GetCoordSys=GetR3CAMA_CoordSys;
  320.    this.SetCoordSys=SetR3CAMA_CoordSys;
  321.    this.GetFilmWidth=GetR3CAMA_FilmWidth;
  322.    this.SetFilmWidth=SetR3CAMA_FilmWidth;
  323.    this.GetFilmHeight=GetR3CAMA_FilmHeight;
  324.    this.SetFilmHeight=SetR3CAMA_FilmHeight;
  325.    this.GetAngle=GetR3CAMA_Angle;
  326.    this.SetAngle=SetR3CAMA_Angle;
  327.    this.GetProjection=GetR3CAMA_Projection;
  328.    this.SetProjection=SetR3CAMA_Projection;
  329.    this.GetFilmSensitivity=GetR3CAMA_FilmSensitivity;
  330.    this.SetFilmSensitivity=SetR3CAMA_FilmSensitivity;
  331.    this.GetAutoExposure=GetR3CAMA_AutoExposure;
  332.    this.SetAutoExposure=SetR3CAMA_AutoExposure;
  333.    this.GetDepthOfField=GetR3CAMA_DepthOfField;
  334.    this.SetDepthOfField=SetR3CAMA_DepthOfField;
  335.    this.GetFocalLength=GetR3CAMA_FocalLength;
  336.    this.SetFocalLength=SetR3CAMA_FocalLength;
  337.    this.GetFstop=GetR3CAMA_Fstop;
  338.    this.SetFstop=SetR3CAMA_Fstop;
  339.    this.GetFocusingDistance=GetR3CAMA_FocusingDistance;
  340.    this.SetFocusingDistance=SetR3CAMA_FocusingDistance;
  341.    this.GetLensFlare=GetR3CAMA_LensFlare;
  342.    this.SetLensFlare=SetR3CAMA_LensFlare;
  343.    this.GetFlash=GetR3CAMA_Flash;
  344.    this.SetFlash=SetR3CAMA_Flash;
  345.    this.GetIsCurrent=GetR3CAMA_IsCurrent;
  346.    this.SetIsCurrent=SetR3CAMA_IsCurrent;
  347.    this.GetScale=GetR3CAMA_Scale;
  348.    this.SetScale=SetR3CAMA_Scale;
  349.    this.GetSafeWidth=GetR3CAMA_SafeWidth;
  350.    this.SetSafeWidth=SetR3CAMA_SafeWidth;
  351.    this.GetSafeHeight=GetR3CAMA_SafeHeight;
  352.    this.SetSafeHeight=SetR3CAMA_SafeHeight;
  353.    this.GetNoVertPersp=GetR3CAMA_NoVertPersp;
  354.    this.SetNoVertPersp=SetR3CAMA_NoVertPersp;
  355.    this.GetSide=GetR3CAMA_Side;
  356.    this.SetSide=SetR3CAMA_Side;
  357.    this.GetFrom=GetR3CAMA_From;
  358.    this.SetFrom=SetR3CAMA_From;
  359.    this.GetTo=GetR3CAMA_To;
  360.    this.SetTo=SetR3CAMA_To;
  361. }
  362.  
  363. r3Camera.prototype=new r3Level;
  364. // r3camera.h_H